package ysq.xyg.service;

import com.github.pagehelper.PageInfo;
import ysq.xyg.model.Member;

import java.util.List;

/**
 * @author yu sheng qiang
 * @create 2017-04-19 14:10
 **/
public interface MemberService extends BaseService<Member> {

    //分页查询
    public PageInfo<Member> pageSelectEntityCount(Member member, int pageSize, int pageNum);
    //分页查询
    public PageInfo<Member> pageSelectEntityXFCount(Member member, int pageSize, int pageNum) ;
    //分页查询
    public PageInfo<Member> pageInfo(Member member, int pageSize, int pageNum) ;
    //条件查询
    public List<Member> list(Member member);
    //查询数量
    public int selectMemberCount(Member member);
    public Member selectEntityByOpenid(String openid);

    /**
     * 查询当前招募人消费记录
     */
    List<Member> selectMoney(String introductUserId);

    List<Member> selectEntity(Member record);

    /**
     * 查询id最高的值
     */
    int selectMaxId();

    /**
     * 查询我邀请的人
     */
    PageInfo<Member> pageMyUserInfo(String memberId, int limit, int page);
    public Member selectEntityByUnionId(String unionid);
    public Member selectEntityByCardNo(String cardNo);
    public Member selectEntityByPhone(String phone);
    int selectMyUserCount(String memberId);

    /**
     * 获取邀请人数
     */
    int selectMyUserByCardNoCount(String cardNo);

    PageInfo<Member> pageEntityInfo(Member member, int limit, int page);
}
